package com.qmds.userserver.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmds.common.core.entity.User;
import com.qmds.userserver.user.param.UpdateByIdParam;
import com.qmds.userserver.user.service.impl.UserServiceImpl;
import com.qmds.userserver.user.vo.PeopleVo;
import com.qmds.userserver.user.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * --- 代码敲烂 月薪过万 ---
 *
 * @author ShiJiaWei
 * @date 2024/9/7
 * @desc:
 */
public interface UserMapper extends BaseMapper<User> {
    List<PeopleVo> findAll(IPage<PeopleVo> page,  @Param("type")Integer type);

    String selectPhone(String s);

    boolean addUser(UserVo userVo);

    UserServiceImpl selectIdCard(String i);

    boolean updateUser(UserVo userVo);

    List<Integer> getType();


    List<Map<String, Object>> getEcharts(Integer type);

    Integer updateById(UpdateByIdParam updateByIdParam);

}
